package seqlist;

/**
 * @author yuisama
 * @date 2022/04/19 21:34
 **/
public class LinkedListTest {
    public static void main(String[] args) {
        SingleLinkedList singleLinedList = new SingleLinkedList();
        singleLinedList.addLast(2);
        singleLinedList.addLast(2);
        singleLinedList.addLast(2);
        singleLinedList.addLast(2);
        singleLinedList.addLast(2);
        singleLinedList.removeAllValue(2);
        System.out.println(singleLinedList);
//        // true
//        System.out.println(singleLinedList.contains(3));
//        // false
//        System.out.println(singleLinedList.contains(30));
//        // 2
//        System.out.println(singleLinedList.getByValue(3));
//        // 2
//        System.out.println(singleLinedList.get(1));
    }
}